package com.llxz.blog.article.repository;

import com.llxz.blog.article.entity.Collection;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.repository.MongoRepository;


/**
 * Created by IntelliJ IDEA.
 *
 * @author lyq
 * @description: date: 2021/9/7 18:00
 */
@Document(collection = "collection")
public interface CollectionRepository extends MongoRepository<Collection, String> {
    /**
     *
     * @param phone
     * @return
     */
    Collection findByPhone(String phone);

    /**
     *
     * @param phone
     */
    void removeByPhone(String phone);
}
